import axios from './network'

//  获取产品导航
function getProductNav(){
  return axios({
    url:'product/product_info'
  })
}

//  获取产品列表
function getGoodsList(data){
  return axios({
    url:'product/product_list',
    method:"POST",
    data:data || null
  })
}

//   获取产品详情
function getGoodsDetail(produce_id){
  return axios({
    url:'product/product_detail',
    method:"POST",
    data:{
      produce_id
    }
  })
}

//   获取产品详情报价参考
function getGoodsOffer(params){
  return axios({
    url:'product/price',
    method:"POST",
    data:params
  })
}


export{
  getProductNav,
  getGoodsList,
  getGoodsDetail,
  getGoodsOffer
}